import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class ConfigUtils {

	
	private String ip;
	
	private String remoteip;

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
	
	
	public String getRemoteip() {
		return remoteip;
	}

	public void setRemoteip(String remoteip) {
		this.remoteip = remoteip;
	}

	public   ConfigUtils(){
		Properties props = new Properties();  
		
		try {
			FileInputStream in = new FileInputStream("./config.properties");
			props.load(in);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	   
	    ip = props.getProperty("ip");
	    remoteip = props.getProperty("remoteip");
	}
}
